package cn.devices.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbDevice implements Serializable {


    public TbDevice() {
    }

    public TbDevice(String deviceCode, String deviceName, String deviceSpec, BigDecimal devicePrice, String deviceLoc, String deviceInfo, String deviceStatus, String typeId, String typeName, String isBorrow, String deviceImg, Integer disabled,String isRegister) {
        this.deviceCode = deviceCode;
        this.deviceName = deviceName;
        this.deviceSpec = deviceSpec;
        this.devicePrice = devicePrice;
        this.deviceLoc = deviceLoc;
        this.deviceInfo = deviceInfo;
        this.deviceStatus = deviceStatus;
        this.typeId = typeId;
        this.typeName = typeName;
        this.isBorrow = isBorrow;
        this.deviceImg = deviceImg;
        this.disabled = disabled;
        this.isRegister=isRegister;
    }

    public TbDevice(String deviceCode, String deviceName, String deviceSpec, BigDecimal devicePrice, String deviceLoc, String deviceInfo, String deviceStatus, String typeId, String typeName, String isBorrow, Integer disabled,String isRegister) {
        this.deviceCode = deviceCode;
        this.deviceName = deviceName;
        this.deviceSpec = deviceSpec;
        this.devicePrice = devicePrice;
        this.deviceLoc = deviceLoc;
        this.deviceInfo = deviceInfo;
        this.deviceStatus = deviceStatus;
        this.typeId = typeId;
        this.typeName = typeName;
        this.isBorrow = isBorrow;
        this.disabled = disabled;
        this.isRegister=isRegister;
    }

    /**
     * 主键
     */
    private String deviceCode;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 规格型号
     */
    private String deviceSpec;

    /**
     * 设备价格
     */
    private BigDecimal devicePrice;

    /**
     * 存放位置编号
     */
    private String deviceLoc;

    /**
     * 设备描述
     */
    private String deviceInfo;

    /**
     * 设备状态
     */
    private String deviceStatus;

    /**
     * 设备分类
     */
    private String typeId;

    private String typeName;
    /**
     * 是否借出 0在库 1借出
     */
    private String isBorrow;

    private String deviceImg;

    /**
     * 删除标记
     */
    private Integer disabled;

    /**
     * 01未登记　02已登记
     */
    private String isRegister;



    public String getIsRegister() {
        return isRegister;
    }

    public void setIsRegister(String isRegister) {
        this.isRegister = isRegister;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public String getDeviceImg() {
        return deviceImg;
    }

    public void setDeviceImg(String deviceImg) {
        this.deviceImg = deviceImg;
    }

    public String getIsBorrow() {
        return isBorrow;
    }

    public void setIsBorrow(String isBorrow) {
        this.isBorrow = isBorrow;
    }



    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceSpec() {
        return deviceSpec;
    }

    public void setDeviceSpec(String deviceSpec) {
        this.deviceSpec = deviceSpec;
    }

    public BigDecimal getDevicePrice() {
        return devicePrice;
    }

    public void setDevicePrice(BigDecimal devicePrice) {
        this.devicePrice = devicePrice;
    }

    public String getDeviceLoc() {
        return deviceLoc;
    }

    public void setDeviceLoc(String deviceLoc) {
        this.deviceLoc = deviceLoc;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(String deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public Integer getDisabled() {
        return disabled;
    }

    public void setDisabled(Integer disabled) {
        this.disabled = disabled;
    }

}
